/**
 * 用户接口
 * @author LiJunYi
 * @create 2019/7/3
 * @since 1.0.0
 */
package com.ljy.system.marvel_sys.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljy.system.marvel_sys.system.model.role.Role;
import com.ljy.system.marvel_sys.system.model.user.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserDao extends BaseMapper<User> {

    List<Role> getRoles(@Param("name") String name);

    List<Role> getRolesByUserId(@Param("userId") int UserId);


}
